package com.equdao.car_violation_inquiry;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@ServletComponentScan
@SpringBootApplication
@MapperScan(basePackages = "com.equdao.car_violation_inquiry.dao")
//开启异步执行
@EnableAsync
	/** 使用内嵌tomcat时放开 **/
public class CarViolationInquiryApplication{

	/** 使用外部tomcat时放开 **/
//	public class CarViolationInquiryApplication  extends SpringBootServletInitializer{
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//		return application.sources(CarViolationInquiryApplication.class);
//	}

	public static void main(String[] args) {
		SpringApplication.run(CarViolationInquiryApplication.class, args);
	}



}
